********* Email Validation in Python( Using string functions)*********


Suppose we have an email address as string. 
We have to check whether this is valid or not based on the following conditions −

1)The format must be username@company.domain format.

2)Username can only contain upper and lowercase letters, numbers, dashes and underscores.

3)Company name can only contain upper and lowercase letters and numbers.

4)Domain can only contain upper and lowercase letters.


An email address is a string (a subset of ASCII characters) separated into two parts by @ symbol,
and a “personal_info” and a domain, that is personal_info@domain .

The all system by the if-else statement .
To run the code we do it by the command  prompt in the system.



All the best! Go and explore the given code.

